.class final Lcom/burstly/lib/network/beans/cookie/CookieManager$2;
.super Ljava/lang/Object;
.source "CookieManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/network/beans/cookie/CookieManager;->initCookieManager(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$applContext:Landroid/content/Context;


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .locals 0
    .parameter

    .prologue
    .line 100
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieManager$2;->val$applContext:Landroid/content/Context;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 103
    sget-object v0, Lcom/burstly/lib/network/beans/cookie/CookieManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "CookieManager"

    const-string v2, "Starting CookieManager initialization process..."

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 104
    new-instance v0, Lcom/burstly/lib/network/beans/cookie/SQLiteCookieStorage;

    iget-object v1, p0, Lcom/burstly/lib/network/beans/cookie/CookieManager$2;->val$applContext:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/burstly/lib/network/beans/cookie/SQLiteCookieStorage;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/burstly/lib/network/beans/cookie/CookieManager;->sSQLiteCookieStorage:Lcom/burstly/lib/network/beans/cookie/ICookieStorage;

    .line 105
    new-instance v0, Lcom/burstly/lib/network/beans/cookie/MemoryCookieStorage;

    sget-object v1, Lcom/burstly/lib/network/beans/cookie/CookieManager;->sSQLiteCookieStorage:Lcom/burstly/lib/network/beans/cookie/ICookieStorage;

    invoke-interface {v1}, Lcom/burstly/lib/network/beans/cookie/ICookieStorage;->getValidCookies()Ljava/util/Collection;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/burstly/lib/network/beans/cookie/MemoryCookieStorage;-><init>(Ljava/util/Collection;)V

    sput-object v0, Lcom/burstly/lib/network/beans/cookie/CookieManager;->sMemoryCookieStorage:Lcom/burstly/lib/network/beans/cookie/ICookieStorage;

    .line 106
    const/4 v0, 0x1

    sput-boolean v0, Lcom/burstly/lib/network/beans/cookie/CookieManager;->sIsReady:Z

    .line 108
    sget-object v0, Lcom/burstly/lib/network/beans/cookie/CookieManager;->LATCH:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    .line 109
    sget-object v0, Lcom/burstly/lib/network/beans/cookie/CookieManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "CookieManager"

    const-string v2, "CookieManager initialization process has finished."

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 110
    return-void
.end method
